﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 快速切换弹幕模式
{
    public partial class XeControl : UserControl
    {

        public override string Text
        {
            get { return label1.Text; }
            set { label1.Text = value;
                if (value.IndexOf("游戏")>-1)
                {
                    pictureBox1.Image = Properties.Resources.game;
                }
            }
        }

        public XeControl()
        {
            InitializeComponent();
        }
        public XeControl(string text)
        {
            InitializeComponent();

            this.label1.Text = text;
        }
    }
}
